import React from "react";
const Home = React.lazy(() => import("../components/home/Home"));
const Category = React.lazy(() => import("../components/category/Category"));
const PageNotFound = React.lazy(() =>
  import("../components/page-not-found/PageNotFound")
);
const SearchCenter = React.lazy(() =>
  import("../components/common/my-search-center/SearchCenter")
);
const GoodDetail = React.lazy(() =>
  import("../components/goodDetail/GoodDetail")
);
export default [
  {
    path: "/",
    exact: true,
    component: Home,
  },
  {
    path: "/category",
    exact: true,
    component: Category,
  },
  {
    path: "/searchCenter",
    exact: true,
    component: SearchCenter,
  },
  {
    path: "/404",
    exact: true,
    component: PageNotFound,
  },
  {
    path: "/goodDetail/:goods_id",
    exact: true,
    component: GoodDetail,
  },
];
